package com.nnxy.work_to_study.service.impl;


import com.nnxy.work_to_study.mapper.ProjectMapper;
import com.nnxy.work_to_study.service.ProjectService;
import com.nnxy.work_to_study.util.ResultUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author @easily001
 * @since 2021-09-29
 */
@Service
public class ProjectServiceImpl  implements ProjectService {

    @Autowired
    private ProjectMapper projectMapper;

    @Override
    public ResultUtil getProductList() {

        List<Map> dbProductDict = projectMapper.getProductList();
        ResultUtil resultUtil = new ResultUtil();
        resultUtil.setCode(0);
        resultUtil.setCount(0);
        resultUtil.setData(dbProductDict);
        return resultUtil;
    }



}
